<template>
  <div class="home">
    <header class="header">123</header>
    <el-container style="height: 90%; border: 1px solid #eee">
      <el-aside width="200px" style="background-color: rgb(238, 241, 246)">

        <el-menu router>
          <TreeMenu :tree-data="treeData"/>
        </el-menu>

      </el-aside>
      <el-container>
        <el-main>
          <router-view></router-view>
        </el-main>
      </el-container>
    </el-container>
  </div>
</template>

<script>
import treeData from "../mock/index.json";
import TreeMenu from "../components/TreeMenu";

export default {
  name: 'Home',
  components: {
    TreeMenu
  },
  data() {
    return {
      treeData
    }
  }
}
</script>
<style lang="less">
* {
  margin: 0;
  padding: 0;
}

.home {
  height: 100vh;
}
.header{
  height: 9%;
  border: 1px solid #eee;
}
</style>
